<!DOCTYPE html>
<html>
<head lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport"
          content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width">
    <title>出错了</title>
    <link rel="stylesheet" href="{$Think.config.resources}/css/wyf-style.css">
    <script>
        new function () {
            var _self = this;
            _self.width = 750;//设置默认最大宽度
            _self.fontSize = 100;//默认字体大小
            _self.widthProportion = function () {
                var p = document.getElementsByTagName("html")[0].offsetWidth / _self.width;
                return p > 1 ? 1 : p;
            };
            _self.changePage = function () {
                document.getElementsByTagName("html")[0].setAttribute("style", "font-size:" + _self.widthProportion() * _self.fontSize + "px !important");
            };
            _self.changePage();
            window.addEventListener("resize", function () {
                _self.changePage();
            }, false);
        };

    </script>
</head>
<body style="background:#fff;">
<div class="error">
    <h3>页面错误！</h3>
    <p>请稍后再试...</p>
    <div><a href="javascript:history.go(-1);">返回上一页</a></div>
</div>
</body>
</html>